
import com.golden.gamedev.object.*;


public class StateManager {
	
	private PlayField myField;
	private StateTable myTable;
	
	public StateManager()
	{
		myField = new PlayField();
		myTable = new StateTable();
	}
	public void setPlayField(PlayField playField)
	{
		myField = playField;
	}
	
	public StateTable getStateTable(){
		return myTable;
	}
	
	
	public void updateTable(long elapsedTime)
	{
		State state = new State(myField);
		myTable.updateStateTable(state,elapsedTime);
	}
	
	public void setTable(StateTable st){
		myTable = st;
	}
	
	

	/*public void addBackground(Background background)
	{
		myField.setBackground(background);
	}
	public void addSprite(Sprite sprite)
	{
		myField.add(sprite);
	}
	public void addSpriteGroup(SpriteGroup group)
	{
		myField.addGroup(group);
	}*/
}
